package com.ruoyi.wb.mapper;

import com.ruoyi.wb.domain.WbFireServiceUnit;
import com.ruoyi.wb.dto.WbFireServiceUserDto;
import com.ruoyi.wb.vo.WbFireServiceUserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 消防单位Mapper接口
 * 
 * @author ruoyi
 * @date 2025-01-06
 */
public interface WbFireServiceUnitMapper 
{
    /**
     * 查询消防单位
     * 
     * @param id 消防单位主键
     * @return 消防单位
     */
    public WbFireServiceUnit selectWbFireServiceUnitById(Long id);

    /**
     * 查询消防单位列表
     * 
     * @param wbFireServiceUnit 消防单位
     * @return 消防单位集合
     */
    public List<WbFireServiceUnit> selectWbFireServiceUnitList(WbFireServiceUnit wbFireServiceUnit);

    /**
     * 新增消防单位
     * 
     * @param wbFireServiceUnit 消防单位
     * @return 结果
     */
    public int insertWbFireServiceUnit(WbFireServiceUnit wbFireServiceUnit);

    /**
     * 修改消防单位
     * 
     * @param wbFireServiceUnit 消防单位
     * @return 结果
     */
    public int updateWbFireServiceUnit(WbFireServiceUnit wbFireServiceUnit);

    /**
     * 删除消防单位
     * 
     * @param id 消防单位主键
     * @return 结果
     */
    public int deleteWbFireServiceUnitById(Long id);

    /**
     * 批量删除消防单位
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWbFireServiceUnitByIds(Long[] ids);

    WbFireServiceUnit getFireServiceUnitByUserId(@Param("userId")Long userId);

    List<WbFireServiceUserVo> listByWbFireServiceUserDto(@Param("wbFireServiceUserDto") WbFireServiceUserDto wbFireServiceUserDto);
}
